package com.realtyManage.springboot.Service;

import com.realtyManage.springboot.Model.Do.*;
import com.realtyManage.springboot.Model.Vo.BaseEntity;
import com.realtyManage.springboot.Model.Vo.SubordinateEntity;
import org.springframework.data.domain.Page;

import java.util.List;

public interface CommodityService {

  /*  List<Viki> queryVikiListPool();

    int saveViki(Viki viki);

    int updateViki(Viki viki);

    List<Viki> queryVikiList(String title);

    Viki queryVikiById(Integer id);*/

  int addCommodity(Commodity commodity);

  int deleteCommodity(List id);

  int updateCommodity(Commodity commodity);

  Page<Commodity> findCommodity(BaseEntity baseEntity);

  Page<Exchange> queryExchangeRecord(BaseEntity baseEntity);

  Commodity findCommodityById(String id);

  List<Exchange> findExchangeList(String id);

  Exchange findExchangeById(String id);

  int exchangeCommodity(Exchange exchange);

  int transactionCommodity(Exchange exchange);

  int backIntegral(Exchange exchange);

  int getUserIntegral(String id);

  int insertWCoupon(Coupon coupon);

  boolean insertNCoupon(ExchangeCoupon exchangeCoupon);

  int deleteCoupon(List ids);

  int deleteExchangeCoupon(List ids);

  List<ExchangeCoupon> getMyCoupon(String id,String phone);

  List<ExchangeCoupon> getMyDNCoupon(String id,String phone);

  Page<ExchangeCoupon> findPagedByWhereClause(String scanName,String userName,String houseCode, BaseEntity baseEntity);

  ExchangeCoupon findCouponByIdDetail(String id);

  Coupon findCouponByIdDetails(String id);

  int useCode(ExchangeCoupon exchangeCoupon);

  int consumeCoupon(Coupon coupon);

  int exchangeCoupon(ExchangeCoupon exchangeCoupon);

  List<Coupon> queryWCoupon();

  int purpose(ExchangeCoupon exchangeCoupon);

  CouponDetail findCouponDetail();

  int updateCouponDetail(CouponDetail couponDetail);

  int verificationCoupon(ExchangeCoupon exchangeCoupon);

  int insertCustomerEvaluation(CustomerEvaluation customerEvaluation);

  int fabulous(CustomerEvaluation customerEvaluation);

  int signIn(SignIn signIn);

  List<User> getUsrList();

  List<String> getCouponTotal();

  int countNum(Integer uid,Integer couponId);

  User getUserById(Integer id);

  List<String> getCountLabel(Integer uid);

  int signInVerification(Integer id,Integer type,String time);

  int getIntegral(Integer type);

  int signInValue(Integral integral);

  int queryUserIntegral(Integer uid);

  int updateUserIntegral(User u);

  int getMaxValue(Integer type);

  int sx(Integer cid);

  List<String> getXz(String rid,Integer cid);

  int deleteCustomerEvaluation(String label,Integer uid);

  int getFabulousNum(String uid);

  int insertReceptionFabulous(Integer cid,Integer rid);

  int saveReceptionFabulous(Integer cid,Integer rid);

  int getFabulousType(Integer cid);

  int getFabulousTypes(Integer cid,String rid);

  int getCountFabulous(Integer rid);

  List<ExchangeCoupon> getIntegralTicket(Integer uid);

  int saveCoupon(Coupon coupon);

  int useCoupon(Integer uid,Integer couponId);

  int saveTintegral(Tintegral tintegral);

  int getIntegralById(Integer uid);

  int countPhone(String phone);

  int subordinate(SubordinateEntity subordinateEntity);
}
